module AutoRest
  # This will load the will_paginate fix that replaces the link_to to link_to_remote
  # in the links when the proper options are used to the will_paginate helper method. 
  # To include the patch, add AutoRest.add_ajax_support_to_will_paginate in 
  # environment.rb of your rails app.
  def add_ajax_support_to_will_paginate
    ar_require_relative __FILE__, 'view_helpers'
  end
  module_function :add_ajax_support_to_will_paginate
end